package cloud.daodao.storm.common.user.model.user;

import cloud.daodao.storm.common.serialize.Serializer;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author DaoDao
 */
@Data
@Schema(title = "UserUpdate", description = "用户更新")
public class UserUpdate implements Serializer {

    @Schema(title = "nickname", description = "昵称", example = "管理员")
    @Size(min = 1, max = 32)
    private String nickname;

    @Schema(title = "avatar", description = "头像", example = "1")
    @Size(min = 1, max = 18)
    @Pattern(regexp = "^[0-9]{1,18}$")
    private String avatar;

}
